let data2={
    msg:{name:"刘济泽",id:1903010325,class:"19应用3-3班"},
    ImgColor:["#8A2BE2","#4169E1","#FFB6C1","#7FFFAA"],
    ImgSrc:["img/img1.jpg","img/img2.jpg","img/img3.jpg","img/img4.jpg"]
};

/*
let NEWEle=document.createElement("img")
NEWEle.src=data2.ImgSrc[0]
let Ele=document.querySelectorAll("#div3 div")
Ele[0].textContent=""
Ele[0].appendChild(NEWEle)
*/

//此处是for循环写入
p=0
for (let i in data2.ImgSrc){
    let d=document.createElement("img")
    d.src=data2.ImgSrc[i]
    let e=document.querySelectorAll("#div3 div")
    e[p].textContent=""
    e[p].appendChild(d)
    p+=1
}


